const AutoImport = require("unplugin-auto-import/webpack");
const Components = require("unplugin-vue-components/webpack");
const { ElementPlusResolver, VantResolver } = require("unplugin-vue-components/resolvers");


module.exports = {
  lintOnSave: false,// 关闭语法检查
  configureWebpack: {
    plugins: [
      AutoImport({
        resolvers: [ElementPlusResolver()],
      }),
      Components({
        resolvers: [ElementPlusResolver(), VantResolver()],
      }),
    ],
  },
  publicPath: process.env.NODE_ENV === 'production'
    ? '/no1/'
    : '/'

};